from random import *
shoots = int(input())
print('Количество выстрелов:', shoots)
count1 = 0
for i in range(shoots):
    x = randint(-50, 50)
    y = randint(-50, 50)
    if x == -7 and y == -8 or x == 5 and y == -8 or y == 5 or x == -7:
        count1 += 1
print('Количество попаданий: ', count1)